package com.xuanwu.shop.entity;

/**
 * �˿�ʵ����
 * @author ��ΰǿ
 *
 */
public class Customer {
	private String id;
	private String uname; // 用户名
	private String passwd; // 密码
	private String email; // 邮箱
	private String realName; // 真实姓名
	private int gender; // 性别
	private String phone; // 电话

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getPasswd() {
		return passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public int getGender() {
		return gender;
	}

	public void setGender(int gender) {
		this.gender = gender;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	
	
	@Override
	public boolean equals(Object obj) {
		if(this == obj){
			return true;
		}
		if(obj instanceof Customer){
			Customer customer = (Customer) obj;
			if(customer.getId() == this.id){
				return true;
			}
		}
		return false;
	}

	@Override
	public String toString() {
		return "Customer [id=" + id + ", uname=" + uname + ", passwd=" + passwd + ", email=" + email + ", realName="
				+ realName + ", gender=" + gender + ", phone=" + phone + "]";
	}
}
